package com.ddh.service.common;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class BaseEntity<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 请求参数
     */
    @JsonIgnore
    @TableField(exist = false)
    private String sqlParams;

    @ApiModelProperty("页面容量")
    @TableField(exist = false)
    private Integer pageSize;

    @ApiModelProperty("当前页")
    @TableField(exist = false)
    private Integer pageNo;

    @ApiModelProperty("总页数")
    @TableField(exist = false)
    private Long pages;

    @ApiModelProperty("总记录数")
    @TableField(exist = false)
    private Long total;

    @ApiModelProperty("数据列表")
    @TableField(exist = false)
    private List<T> records;


}
